package com.woparker.kiosk.activity

import android.view.LayoutInflater
import android.view.View
import com.woparker.kiosk.R
import com.woparker.kiosk.base.BaseActivity
import com.woparker.kiosk.base.ContextHolder


class SplashActivity : BaseActivity() {
    override fun createView(): View {
        val view = LayoutInflater.from(this).inflate(R.layout.activity_splash,null)
        return view
    }

    override fun initView() {
    }

    override fun initData() {
        gotoMain()
    }

    private fun gotoMain() {
        ContextHolder.getMainHandler().postDelayed(Runnable {
            val intent: android.content.Intent =
                android.content.Intent(this, MainActivity::class.java)
            startActivity(intent)
            finish()
        }, 500)
    }
}
